﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Module_News : PanelControl
{
    PromotionsBuisness prb = new PromotionsBuisness();
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    public string getNews()
    {
        string tmp = "";
        DataTable dt = prb.getAllPromotions();
        if (dt != null)
        {
            DataRow dr = dt.Rows[0];
            tmp += "<tr id=\"trTitNews\">";
            tmp += "<td>";
            tmp += dr["promotionsName"].ToString();
            tmp += "</td>";
            tmp += "</tr>";
            tmp += "<tr id=\"trContentNew\">";
            tmp += "<td valign=top>";
            tmp += dr["promotionsContent"].ToString();
            tmp += "</td>";
            tmp += "</tr>";
        }
        return tmp;
    }
}